/*!
 * \file cicsts_header.h
 *
 * \brief 消息头操作
 *
 * All Rights Reserved Copyright (C) 2014 broada,Co.,Ltd.
 *
 * \version 1.0
 * \author songbb
 * \date 2016/04/22
 *
 */

#ifndef __CICSTS_HEADER_H_
#define __CICSTS_HEADER_H_

#include "cicsts_core.h"

/*!
 * 解析通用包头
 *
 * \param i_is_request      (是否是请求)
 * \param p_payload         (数据内容)
 * \param ui_payload_len    (数据长度)
 * \param p_st_cicsts_header  (通用头结构体)
 *
 * \return 0  失败\n
 *         1  成功
 *
 */
int cicsts_header_unpack(int i_is_request
                        , char *p_payload
                        , unsigned int ui_payload_len
                        , CicsTS_header *p_st_cicsts_header);

#endif
